package com.jy.api.exception;

import lombok.Getter;

/**
 * Created by xiaohua on 2018/11/12.
 */
@Getter
public class CallServiceException extends Exception {



    private Integer code;

    private String message;

    public CallServiceException(String empName,ExceptionEnum resultEnum) {
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
        this.message =empName+ resultEnum.getMessage();
    }

}
